#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <coelacanth/hashtable.h>



void add_elements(void *hashtable_int, size_t tablesize)
{
   hashtable_ptr(ht, tablesize, int);
   ht = hashtable_int;
   printf("%ld\n", ht->size);

   hashtable_set(ht, "primer elemento", 103);
   hashtable_set(ht, "segundo elemento", 107);
}


int main()
{
   int value;

   hashtable(hashtable, 50, int);

   hashtable_set(hashtable, "primer elemento", 23);
   hashtable_set(hashtable, "segundo elemento", 37);

   add_elements(hashtable, hashtable->size);

   hashtable_set(hashtable, "segundo elemento", 3);

   hashtable_get(hashtable, "primer elemento", value);
   printf("value: %d\n", value);

   hashtable_get(hashtable, "segundo elemento", value);
   printf("value: %d\n", value);

   hashtable_free(hashtable);

   return 0;
}




